Skip to content

feat(search): sortProperties on searchRequest - #61

Merged
butonic merged 1 commit into
mainfrom
feat/search-sort-properties
Oct 1, 2026
Merged

butonic merged 1 commit into
mainfrom
feat/search-sort-properties

Conversation

@dschmidt

@dschmidt dschmidt commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Adds sortProperties / sortProperty to searchRequest, following the MS Graph sortProperty resource type: an ordered list of {name, isDescending} entries (at most 5, as in MS Graph), with results sorted by relevance when absent. Ties are broken by relevance and results missing the sort property are placed last.

Sortable are the scalar search fields of the search hit's resource (name, size, lastModifiedDateTime, mimeType and scalar facet fields such as photo.takenDateTime or audio.artist). Multivalued and unknown properties are rejected with invalidRequest.

Implementation: opencloud-eu/opencloud#3298 (draft).

@dschmidt
dschmidt force-pushed the feat/search-sort-properties branch from c400b39 to a936b79 Compare September 1, 2026 10:13
@dschmidt
dschmidt force-pushed the feat/search-sort-properties branch from a936b79 to 13117f3 Compare September 7, 2026 21:36
@dschmidt
dschmidt marked this pull request as ready for review September 7, 2026 23:55
@dschmidt
dschmidt force-pushed the feat/search-sort-properties branch from 13117f3 to 6b2bad5 Compare October 1, 2026 10:58
Base automatically changed from feat/search to main October 1, 2026 16:33
@dschmidt
dschmidt force-pushed the feat/search-sort-properties branch 2 times, most recently from 34213f3 to 3992a13 Compare October 1, 2026 19:17
Ordered list of {name, isDescending} sort keys on searchRequest,
following the MS Graph sortProperty resource type including its cap of
5 sort properties. Ties are broken by relevance, results missing the
sort property are placed last. Sortable are the scalar search fields of
the hit's resource; multivalued and unknown properties are rejected
with invalidRequest.
@butonic
butonic merged commit 6ef8e9e into main Oct 1, 2026
4 checks passed
@butonic
butonic deleted the feat/search-sort-properties branch October 1, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants